<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"
	import="java.util.*"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>修改用户</title>
<script type="text/javascript">
	function checkCorpOpenStat(uId) {
		$.post("<%=request.getContextPath()%>/user/open/query", {
			userId : uId
		}, function(result) {
			alert("当前汇付开户进度为："+result);
		});
		return false;
	}
</script>
</head>
<body>
	<div class="youarehere">
		用户管理管理 &gt; <span>修改用户</span>
	</div>
	<c:choose>
		<c:when test="${empty user.trustAccountId && user.type != 'PERSON'}">
			<div>当前开户进度：<span style="color: red">${user.auditDesc}</span> 
					<button onclick="checkCorpOpenStat('${user.id}')" value="开户进度查询">开户进度查询</button>
			</div>
		</c:when>
		<c:otherwise></c:otherwise>
	</c:choose>
	
	
	<c:choose>
		<c:when test="${user.type != 'PERSON'}">
			<chtml:command command="user" title="修改" exclude="id,registerTime,auditDesc" action="/user/modify" column="2">
				<chtml:property index="0" label="编号">${user.id }
					<input name="id" type="hidden" value="${user.id }" />
					<input name="registerTime" type="hidden" value="${user.registerTime }" />
				</chtml:property>
				
				<chtml:button destination="/user/open/${user.id}" showText="汇付开户"></chtml:button>
				<chtml:button destination="/user/modify" showText="更新"></chtml:button>
			</chtml:command>
		</c:when>
		<c:otherwise>
			<chtml:command command="user" title="修改" exclude="id,registerTime,auditDesc" action="/user/modify" column="2">
				<chtml:property index="0" label="编号">${user.id }
					<input name="id" type="hidden" value="${user.id }" />
					<input name="registerTime" type="hidden" value="${user.registerTime }" />
				</chtml:property>
				<chtml:button destination="/user/modify" showText="更新"></chtml:button>
			</chtml:command>
		</c:otherwise>
	</c:choose>
	
	<style type="text/css">
td.data_tab_tdl #isInvestor,#isBorrower,#isMobileCheck,#isEmailCheck,#isRealNameCheck
	{
	font: 12px Tahoma;
	padding: 2px 6px;
	margin: 0 5px 0 8px;
	height: 18px;
	width: 18px;
}

.btn_ty {
	height: 35px;
	vertical-align: text-bottom;
	margin: 8px 10px;
	padding: 0px 10px;
	cursor: pointer;
	font-size: 14px;
}
</style>
</body>
</html>